package po.meeting;

public class Room {
	private int roomId;     //编号
	private String roomNo;  //房间号 "3002"
	private int sitNum;     // 座位数
	private boolean use;    //是否被使用
	@Override
	public String toString() {
		return "Room [roomId=" + roomId + ", roomNo=" + roomNo + ", sitNum=" + sitNum + ", use=" + use + "]";
	}
	public int getRoomId() {
		return roomId;
	}
	public void setRoomId(int roomId) {
		this.roomId = roomId;
	}
	public String getRoomNo() {
		return roomNo;
	}
	public void setRoomNo(String roomNo) {
		this.roomNo = roomNo;
	}
	public int getSitNum() {
		return sitNum;
	}
	public void setSitNum(int sitNum) {
		this.sitNum = sitNum;
	}
	public boolean isUse() {
		return use;
	}
	public void setUse(boolean use) {
		this.use = use;
	}
	public Room(int roomId, String roomNo, int sitNum, boolean use) {
		super();
		this.roomId = roomId;
		this.roomNo = roomNo;
		this.sitNum = sitNum;
		this.use = use;
	}
	public Room() {
		super();
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + roomId;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Room other = (Room) obj;
		if (roomId != other.roomId)
			return false;
		return true;
	}
}